package com.qfmy.common.result;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),
    PARAM_ERROR(202, "参数不正确"),
    SERVICE_ERROR(203, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    ILLEGAL_REQUEST(205, "非法请求"),
    REPEAT_SUBMIT(206, "重复提交"),

    APP_LOGIN_AUTH(501, "未登陆"),
    APP_LOGIN_PHONE_EMPTY(502, "手机号码为空"),
    APP_LOGIN_CODE_EMPTY(503, "验证码为空"),
    APP_SEND_SMS_TOO_OFTEN(504, "验证法发送过于频繁"),
    APP_LOGIN_CODE_EXPIRED(505, "验证码已过期"),
    APP_LOGIN_CODE_ERROR(506, "验证码错误"),
    APP_ACCOUNT_DISABLED_ERROR(507, "该用户已被禁用"),
    APP_PHONE_ERROR(508, "手机号格式错误"),
    APP_PHONE_REST(509,"这个手机号以及被注册了" ),
    APP_PHONE_NOT_EXIST(510,"这个手机行并没有注册" ),
    APP_PHONE_PASSWORD_ERROR(511, "密码错误" ),
    USER_SIGN_IN_ALREADY(512, "请勿重复签到"),
    APP_ILLEGAL_CONTENT(513, "内容含有违规字符" ),
    NOT_LIKE(514, "操作非法"),
    COMMENT_EXIST(515, "请勿重复评论"),
    COMMENT_NOT_EXIST(516,"评论不存在" ),
    NOVEL_SELF_EXIST(517, "改小说已近被删除了"),
    USER_AUDIO_SELF_EXIST(518,"用户音频在书架中已经存在" ),
    REPEAT_ADD(519, "请勿重复添加" ),
    REPEAT_CANCEL(520, "请勿重复取消点赞"),
    USER_INSUFFICIENT_INTEGRAL(521,"您当前的汀币不足,请前往充值中心进行充值" ),
    SIGN_IN_ERROR(522, "请勿重复签到"),


    TOKEN_EXPIRED(601, "token过期"),
    TOKEN_INVALID(602, "token非法");


    private final Integer code;

    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
